package org.example.frw.canal.binlog.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.example.frw.canal.HashValue;

@Getter
@Setter
@ToString(callSuper = true)
public class GoodsSkuBinlogEntity extends BaseBinlogEntity implements HashValue {
    private Long id;

    private Long goodsId;

    private String skuCode;
    /**
     * 规格名称
     */
    private String name;
    /**
     * 规格值
     */
    private String description;
    /**
     * 销售价格
     */
    private Long price;
    /**
     * 划线价格
     */
    private Long linePrice;
    /**
     * 成本价格
     */
    private Long costPrice;
    /**
     * 库存
     */
    private Long stock;
    /**
     * sku状态
     */
    private String status;

    @Override
    public String hashValue() {
        return String.valueOf(goodsId);
    }
}
